package java01_type;

import org.junit.jupiter.api.Test;

public class Test04_Boolean {

    /**
     * 要避免空指针问题
     */
    @Test
    public void test_Boolean() {
        Boolean a = Boolean.valueOf(true);
        Boolean b = Boolean.valueOf(false);
        System.out.println(Boolean.TRUE.equals(a));
        System.out.println(Boolean.FALSE.equals(b));
    }

    @Test
    public void test_boolean() {
        boolean a = true;
        boolean b = false;
        System.out.println(a);
        System.out.println(b);
    }
}
